<template>
    <div class="todo-header">
        <input placeholder="请输入你的任务名称，按回车键确认" type="text" @keyup.enter="add" />
    </div>
</template>

<script>
export default {
    name: 'My-Header',
    props: ['todos', 'add']
}
</script>

<style scoped></style>
